<?php
class wordtagController extends Controller{
	public function __construct(){
		parent::__construct();
		
	}
	public function s(){
		return array('wordtag');
	}
	public function index(){
	
	}
	//单词列表
	public function mylist(){
		
		$condition=array();
		$extra='';
		$return=$this->s_0->mylist($condition,$extra);
		
		
		include($this->viewer_dir.'wordtag/mylist.php');
	}
	//单词对应的文章
	public function arc_list(){
		$tag=trim($_GET['tag']);
		if(!$tag){
			jump('wordtag','mylist');
		}
		$r=$this->s_0->is_exist($tag);
		if(!$r) jump('wordtag','mylist');
		$this->s_0->update_hits();
		
		$condition=array();
		$condition['tag']=$tag;
		$extra=" and `a`.`status`='1' and `l`.`tag`='{$tag}' and `l`.`index`>'0' ";
		$return=$this->s_0->arc_list($condition,$extra);
		
		$in_=$this->s_0->in_($tag);
		
		
		
		include($this->viewer_dir.'wordtag/arc_list.php');
	}

//
}